<?php
/* @var $this ScheduleController */
/* @var $model Schedule */

$this->breadcrumbs=array(
	'Management'=>array('/site/management/'),
	'User Schedules'=> array('/schedule/admin', 'id'=>$model->iduser),
	$model->idschedule,
);

$this->menu=array(
	//array('label'=>'List Schedule', 'url'=>array('index')),
	array('label'=>'Add Schedule', 'url'=>array('create', 'id'=>$model->iduser)),
	array('label'=>'Update Schedule', 'url'=>array('update', 'id'=>$model->idschedule)),
	array('label'=>'Delete Schedule', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->idschedule),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Schedules', 'url'=>array('admin', 'id'=>$model->iduser)),
);
?>

<h1><?php echo $model->weekday_relation->name; ?>'s Schedule for <?php echo $model->user_relation->fullname; ?> </h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		array(
				'name'=>'Weekday',
				'value'=> $model->weekday_relation->name,
		),			
		array(
				'name'=>'Shift',
				'value'=> $model->shift_relation->name,
		),		
		'shift_relation.start_time',
		'shift_relation.end_time',
		array(
				'name'=>'Q-Shift',
				'value'=> $model->qshift_relation->name,
		),	
		'qshift_relation.start_time',
		'qshift_relation.end_time',	
	),
)); ?>
